<?php
namespace App\Http\Controllers;
use App\Models\Food;
use Illuminate\Support\Facades\DB;

class BladeController extends Controller{
    public function show(){
        $foods = Food::simplePaginate(3);
        //$foods = DB::table('food')->simplePaginate(3);
        $name='sean';
        $names=['sean','tom'];
        return view('blade.show',[
            'name'=>$name,
            'names'=>$names,
            'foods'=>$foods
        ]);
    }
}